<h1><%= t :listborrow%></h1>

<table>
  <tr>
    <th><%= t :studentid%></th>
    <th><%= t :namebook%></th>
    <th><%= t :borrowtime%></th>
    <th><%= t :backtime%></th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @muonsaches.each do |muonsach| %>
  <tr>
    <td><%= muonsach.studentId %></td>
    <td><%= muonsach.bookName %></td>
    <td><%= muonsach.thoigianmuon %></td>
    <td><%= muonsach.thoigiantra %></td>
    <td><%= link_to t(:destroy), muonsach, confirm: t(:confirm), method: :delete %></td>
  </tr>
<% end %>
</table>

<br />
